//
//  Dog.m
//  数组
//
//  Created by qianfeng on 15/8/16.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//

#import "Dog.h"

@implementation Dog
- (id) initWithName:(NSString *)name andAge:(NSUInteger)age{
    if (self = [super init]) {
        _name = name;
        _age = age;
    }
    return self;
}

- (void) printInfo{
    NSLog(@"%@ %lu",_name,_age);
}

- (void) bark{
    NSLog(@"wangwangwang");
}
-(NSString *)description{
    return [NSString stringWithFormat:@"%@ %lu",_name,_age];
}


@end
